import { defineStore } from "pinia";
import type { UserRole } from "~/types";

export const useAuthStore = defineStore("auth", {
  state: () => ({
    userRole: "guest",
  }),
  actions: {
    setUserRole(role: UserRole) {
      this.userRole = role;
    },
  },
});
